﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Reflection;
using FinPlusCommon;

namespace FinPlusWPFControls
{
    public partial class FinPlusStatusBar : FinPlusControl
    {
        public override string Id { get; set; }
        public override string[] States { get { return new string[] { }; } }
        public override string[] TestStates { get { return new string[] { }; } }
        public override IFinPlusFunctions Model { get { return null; } }
        public override string ModelTest { get { return null; } }
        public override bool IsValid { get; set; }

        //construct
        public FinPlusStatusBar()
        {
            InitializeComponent();

            version.Text = string.Format("Version {0}", Assembly.GetExecutingAssembly().GetName().Version);
            user.Text = string.Format("{0}", Environment.UserName);
            tiering.Text = string.Format("Render tier {0}", RenderCapability.Tier >> 16);
            IsValid = true;
        }
      
        //common control interface 
        public override void Dock(object control, string dock) { }

        public override void Initialise()
        {

        }

        public override void CommandRouter(IFinPlusFunction func) { }

        public override void Dispose() { }
    }
}














































































































































































//Copyright2013<jnrton>AllRightsReserved 
//Contact j.nrton@finpus